package com.aaa.ssm.dao;


import com.aaa.ssm.entity.Subscribe;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author wjz
 * 2023/10/13
 */
public interface SubscribeDao {


    /**
     * 添加
     *
     * @param subscribe
     * @return
     */
    int add(Subscribe subscribe);

//前台挂号添加
    int insert(Subscribe subscribe);

    /**
     * 事务次数减少
     *
     */

    /*int update(Subscribe subscribe);*/

    /**
     * 查询
     */
    List<Subscribe>selectAll(Subscribe subscribe);


    /**
     * 医生名字

     */
//    List<Subscribe> selectById(Subscribe subscribe);

    List<Subscribe> selectById(Integer id);

    /**
     * 查询
     */
    Subscribe querySchedulingInfo(@Param("careerId") String careerId, @Param("date") String date);


}
